In [1]:
res_Name = str(input("What is your restaurant name:   ")) #Asking the restaurant name
totalCost = float(input("What is the total cost of your meal:   ")) #Asking the total cost of your meal that is a input
tip = totalCost*0.2 #Calculates the tip of the meal

print("Total Cost:  ", totalCost) #The total cost of your meal
print("Tip:  ", tip) #The tip of your meal

print("Hello, your meal at", res_Name, "has a total cost of", totalCost, "and you should leave a tip of", tip) #Formatted statement of the total cost and tip
What is your restaurant name:   Olive Garden
What is the total cost of your meal:   17.80
Total Cost:   17.8
Tip:   3.5600000000000005
Hello, your meal at Olive Garden has a total cost of 17.8 and you should leave a tip of 3.5600000000000005
In [ ]:
 
In [ ]:
 
In [ ]: